package com.sun.controller;


import com.sun.common.MsResult;
import com.sun.pojo.CmsPrefrenceArea;
import com.sun.pojo.CmsSubject;
import com.sun.service.ICmsPrefrenceAreaService;
import com.sun.service.ICmsSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 优选专区 前端控制器
 * </p>
 *
 * @author 妙妙屋
 * @since 2022-01-04
 */
@RestController
@RequestMapping("/prefrenceArea")
public class CmsPrefrenceAreaController {
    @Autowired
    private ICmsPrefrenceAreaService prefrenceAreaService;
    @GetMapping("/listAll")
    public MsResult list(Long defaultStatus){
        //根据默认状态，查找会员级别
        List<CmsPrefrenceArea> list = prefrenceAreaService.list();
        return MsResult.isOkData(list);
    }
}

